/*
 * Copyright © 2018 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
*/

@import "../../../styles/variables.scss";
$tr-height: 30px;
$link-color: $blue-03;

.namespace-details-preferences {
  .namespace-details-section-label {
    .edit-label {
      color: $link-color;
      font-size: 13px;
      margin-left: 10px;
      cursor: pointer;
    }
  }

  .preferences-table {
    width: 100%;
    table-layout: fixed;

    tr {
      border-bottom: 1px solid $grey-05;
      border-top: 2px solid white;
      border-left: 2px solid white;
      border-right: 2px solid white;
      display: table;
      width: 100%;

      &.highlighted {
        border: 2px solid $green-03;
        background-color: rgba($green-03, 0.1);
      }

      th {
        border-top: 0;
        border-bottom: 0;
      }

      th:first-child,
      td:first-child,
      th:nth-child(2),
      td:nth-child(2) {
        width: 20%;
      }

      td {
        height: $tr-height;
        padding-top: 5px;
        padding-bottom: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
  }
}
